<?php /* Smarty version 2.6.18, created on 2009-05-07 08:40:25
         compiled from ua-admin/industry_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'ua-admin/industry_index.html', 37, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>控制台_<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link href="css/main.css" rel="stylesheet" type="text/css" />
<style>
.id { font-weight:bold; font-family:Arial, Helvetica, sans-serif;}
.action { color:#990000; }
.name { text-decoration:underline}
</style>
<script>
function updateIdPrior(id,prior){
xajax_updatePriority(id,prior);
}
</script>
<?php echo $this->_tpl_vars['xajax_javascript']; ?>

</head>
<body>
<!-- :~位置导航 -->
<br />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="98%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;行业类别管理</div></td></tr>
</table>
<br />
<div id="updateDIV" align="right"></div>
<!-- 位置导航 -->
<form name="frm1" action="industry.php" method="post">
<table width="98%" border="1" cellpadding="5" cellspacing="2" class="tableborder" align="center" summary="for industry list.">
<tr class="header"><td colspan="3"><div><?php echo $this->_tpl_vars['IndustryPosition']; ?>
</div>
<br />
<div style="text-align:right"><a name="a1" href="./industry.php?action=truncate" onClick="if(window.confirm('是否删除所有类别?')) return true;else return false;">点击清空所有类别</a></div></td></tr>
<tr>
<?php $_from = $this->_tpl_vars['IndustryList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['industry'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['industry']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['il']):
        $this->_foreach['industry']['iteration']++;
?>
	<td><span class="id"><a href="industry.php?action=list&pid=<?php echo $this->_tpl_vars['il']['id']; ?>
" title="查看<?php echo $this->_tpl_vars['il']['name']; ?>
子分类" class="name"><?php echo $this->_tpl_vars['il']['id']; ?>
</a>.</span><input type="checkbox" name="chk_id[]" value="<?php echo $this->_tpl_vars['il']['id']; ?>
" title="显示/隐藏" <?php if ($this->_tpl_vars['il']['ifshow'] == 1): ?>checked="checked"<?php endif; ?> /><input type="text" name="names[]" value="<?php echo $this->_tpl_vars['il']['name']; ?>
" size="14" />(序:<input type="hidden" name="id[]" value="<?php echo $this->_tpl_vars['il']['id']; ?>
" /><input type="text" style="height:18px" size="1" name="priority[]" id="priority_<?php echo $this->_tpl_vars['il']['id']; ?>
" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['il']['priority'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
" onblur="updateIdPrior(<?php echo $this->_tpl_vars['il']['id']; ?>
,document.frm1.priority_<?php echo $this->_tpl_vars['il']['id']; ?>
.value);"/>)  <a href="industry.php?action=mod&id=<?php echo $this->_tpl_vars['il']['id']; ?>
&pid=<?php echo $this->_tpl_vars['il']['parentid']; ?>
" class="action"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/mod.gif" border="0" alt="修改"></a> <a href="industry.php?action=del&id=<?php echo $this->_tpl_vars['il']['id']; ?>
" class="action"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/delete.gif" border="0" alt="删除"></a> <a href="industry.php?action=list&pid=<?php echo $this->_tpl_vars['il']['id']; ?>
" title="查看<?php echo $this->_tpl_vars['il']['name']; ?>
子分类" class="name"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
admin/preview.gif" border="0" alt="查看子分类"></a></td>
    <?php if (!($this->_foreach['industry']['iteration'] % 3)): ?>
    </tr><tr>
    <?php endif; ?>
	<?php endforeach; else: ?>
	<td align="center">目前没有任何数据</td>
    <?php endif; unset($_from); ?>
	</tr>
<tr>
  <td colspan="3"><input class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'" type="submit" name="update_prior" value="立即更新"></td>
</tr>
</table>
</form>
</body>
</html>